package org.fatewa.engine.magic.db.bean;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author fatewa
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Column extends Remarkable {
    private String size;
    private String type;

    /**
     * 字段
     *
     * @param name   字段名称
     * @param remark 备注
     * @param size   字段大小
     * @param type   字段类型
     */
    public Column(String name, String remark, String size, String type) {
        this.size = size;
        this.type = type;
        setName(name);
        setRemark(remark);
    }
}
